/*
* Copyright 2010 Competentum group
*
* Licensed under the GNU General Public License, Version 3.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*      http://www.gnu.org/licenses/gpl.html
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.competentum.controls.panel
{
	import com.competentum.builders.BindsBuilder;
	import com.competentum.io.IEngineView;
	import com.competentum.windows.Scope;
	import com.competentum.lib.data.builders.AbstractDataBuilder;
	
	import spark.components.Button;
	import spark.components.Label;
	import spark.components.Panel;

	/**
	 * Top panel with buttons view. Launches some global operations like saving, loading file, setting preferences.
	 * @author Sergey Osipov
	 * */
	public class CommandPanel extends Panel implements IEngineView
	{
		private var _scope:Scope;
		public function get scope():Scope
		{
			return _scope;
		}
		public function set scope(value:Scope):void
		{
			_scope = value;
		}
		
		[SkinPart(required="false")]
		
		/**
		 *  The skin part that defines the appearance of the 
		 *  addNewWindow button.
		 */
		public var addNewWindow:Button;
		
		[SkinPart(required="false")]
		
		/**
		 *  The skin part that defines the appearance of the 
		 *  addNewEmployee button.
		 */
		public var addNewEmployee:Button;
		
		[SkinPart(required="false")]
		/**
		 *  The skin part that defines the appearance of the 
		 *  addNewProjectButton button.
		 */
		public var addNewProjectButton:Button;
		
		[SkinPart(required="false")]
		
		/**
		 *  The skin part that defines the appearance of the 
		 *  Save button.
		 */
		public var saveButton:Button;
		
		[SkinPart(required="false")]

		/**
		 *  The skin part that defines the appearance of the 
		 *  SaveAs button.
		 */
		public var saveAsButton:Button;
		
		[SkinPart(required="false")]

		/**
		 *  The skin part that defines the appearance of the 
		 *  Load button.
		 */
		public var loadButton:Button;
		
		[SkinPart(required="false")]
		
		/**
		 *  The skin part that defines the appearance of the 
		 *  export button.
		 */
		public var exportButton:Button;
		
		[SkinPart(required="false")]
		
		/**
		 *  The skin part that defines the appearance of the 
		 *  import button.
		 */
		public var importButton:Button;
		
		[SkinPart(required="false")]
		
		/**
		 *  The skin part that defines the appearance of the 
		 *  refresh button.
		 */
		public var refreshButton:Button;
		
		[SkinPart(required="false")]
		
		/**
		 *  The skin part that defines the appearance of the 
		 *  status field (saved/not saved).
		 */
		public var currentWorkStatus:Label;
		
		[SkinPart(required="false")]
		
		/**
		 *  The skin part that defines the appearance of the 
		 *  About button.
		 */
		public var aboutButton:Button;
		
		[SkinPart(required="false")]
		
		/**
		 *  The skin part that defines the appearance of the 
		 *  preferences button.
		 */
		public var preferencesButton:Button;
		
		public function CommandPanel()
		{
			super();
		}
		
		public function refresh():void
		{
		}
		
		public function invalidateCollection():void
		{
		}
		
		public function invalidateRenderers():void
		{
		}
	}
}